cmake_minimum_required(VERSION 3.10)

project(SharedMemoryFileTransfer)

# 设置 C++ 标准为 C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 添加 Boost 库
find_package(Boost REQUIRED)

include_directories(${Boost_INCLUDE_DIRS})

# 添加源文件
add_executable(client src/client.cpp)
add_executable(server src/server.cpp)

# 链接 Boost 库
target_link_libraries(client ${Boost_LIBRARIES})
target_link_libraries(server ${Boost_LIBRARIES})
